<template>
  
    
    <el-input-number v-model="num" @change="handleChange" :min="1" :max="10" label="描述文字" size="small"></el-input-number>

</template>
<script>
  export default {
    data() {
      return {
        num:this.initcount,
      };
    },
    created(){
      
    },
    methods: {
      handleChange(value) {
        this.$store.commit("changCount",{
          id:this.id,
          count:value
        })
      }
    },
    props:["initcount","id"]
  };
</script>

<style lang="scss" scoped>
  
</style>
